import { getEnumBase } from '@Untils'

export const sexTypeList = () => [
  {
    label: '男',
    value: 1,
  },
  {
    label: '女',
    value: 2,
  },
]

export const getOneSex = (_filter) => {
  let _list = sexTypeList()
  return getEnumBase(_list, _filter)

  // let _result = _list.filter(_filter)
  // if (_result.length > 0) {
  //   return _result[0]
  // }
  // return { label: null, value: null }
}
